package com.tanggh.action;


import org.springframework.beans.factory.annotation.Autowired;

import com.tanggh.entity.CompanyCer;
import com.tanggh.service.CompanyCerService;

public class CompanyCerAction extends GenericAction{
	private static final long serialVersionUID = 1L;
	
	@Autowired
	private CompanyCerService companyCerService;
	
	@Override
	public String execute() throws Exception {
		/*CompanyCer p = new CompanyCer();
		p.setTitle("北京企业寻建造师挂靠");
		p.setCompanyName("腾讯公司");
		p.setCityCode("01000");
		p.setJobCategoryCode("02555");
		p.setContact("tanggaohong");
		p.setUpdateDate(new Timestamp(new Date().getTime()));
		p.setCreateDate(new Timestamp(new Date().getTime()));
		p.setDescription("description");
		p.setQq("63495645");
		p.setMobileNumber("15988889999");
		p.setFromUrl("http://www.baidu.com");
		p.setIp("192.168.168.0");
		p.setSalaryId(1);
		companyCerService.save(p);*/
		CompanyCer c = companyCerService.get(1);
		System.out.println(c.getCompanyName());
		return super.execute();
	}
}
